/*
 * @Description:
 * @version: v0.0.1
 * @Author: ZhouYanPing
 * @Date: 2025-04-07 23:45:20
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2025-04-08 00:20:19
 */
// 环境配置
export const ENV_CONFIG = {
  // 开发环境
  development: {
    logo: import.meta.env.VITE_APP_LOGO,
    baseUrl: import.meta.env.VITE_APP_BASE_URL,
  },
  // 测试环境
  test: {
    logo: import.meta.env.VITE_APP_LOGO,
    baseUrl: import.meta.env.VITE_APP_BASE_URL,
  },
  // 生产环境
  production: {
    logo: import.meta.env.VITE_APP_LOGO,
    baseUrl: import.meta.env.VITE_APP_BASE_URL,
  },
} as const;

type EnvType = keyof typeof ENV_CONFIG;

// 获取当前环境
export const getEnv = (): EnvType => {
  return (import.meta.env.VITE_APP_ENV as EnvType) || 'development';
};

// 获取环境配置
export const getEnvConfig = () => {
  const env = getEnv();
  return ENV_CONFIG[env];
};
